cmake_minimum_required(VERSION 3.16)

project(HPS)

set(CMAKE_INSTALL_PREFIX ../)

add_subdirectory(src src)

include_directories(include)

# 链接库到main_run
target_link_libraries(HPS_RUN HPS_SHARED pthread mysqlcppconn)

# 安装文件到目录
install(TARGETS HPS_SHARED
        LIBRARY DESTINATION bin)

install(TARGETS HPS_RUN
        RUNTIME DESTINATION bin)
